
<div id="m_0" class="modbox<?php echo (@$_GET['pinSettings'] == 1) ? "_e" : "";?> ">
<h2 class="modtitle">
    <a class="delbox" href="#" onclick="return _del('0',32,'n_32=url%3Dhttp://myearnings.googlecode.com/svn/trunk/MyEarnings.xml%26up_salaryH%3D20000%26up_salary%3D********%26up_timerPaused%3D1%26up_timerStart%3D6422');"></a><a class="minbox" id="m_0_zippy" href="#" onclick="this.blur();return _zm('0', '32');return false;"></a><a class="ddbox" id="DD_tg_0" href="#" onclick="this.blur(); var e=_gel('m_0'); e.className = e.className == 'modbox' ? 'modbox_e' : 'modbox'"></a>

    <span class="my_gadget" style="display:none"></span>

    <div id="m_0_h">
        <a class="mtlink" id="m_0_url" href="<?php echo @$gadget->ModulePrefs['title_url'];?>"><span id="m_0_title" class="modtitle_text">
		
<?php 
			
			if (isset($gadgetTitle))
			{
				echo $gadgetTitle;
			}
			else
			{
				$useTitle = ((string)$gadget->ModulePrefs['title']);
?>
				<script>
					try
					{
						if(eval("<?php echo $useTitle; ?>"))
						{
							document.write(eval("<?php echo $useTitle; ?>"));
						}
						else
						{
							document.write("<?php echo $useTitle; ?>");
						}
					}
					catch (err)
					{
						document.write("<?php echo $useTitle; ?>");
					}

				</script>
<?php
			}
		?>	
			
</span></a>
    </div>
    <?php require("gadgetPrefs.php"); ?>
</h2>
<div id="m_0_b" class="modboxin">

<!-- Copyright 2007 and beyond, Google Inc.  To use gadgets on your own site, visit http://www.google.com/webmasters/gadgets.  To create your own gadgets, visit http://www.google.com/apis/gadgets -->
<div id=remote_0 style="border:0;padding:0;margin:0;width:100%;;overflow:hidden;">

<?php 

	$messageFile = ((string)$gadget->ModulePrefs->Locale['messages']);

	if ($messageFile != "")
	{
			$messageFile = $langDir . $messageFile;
		if (file_exists($messageFile))
		{
			$messages = simplexml_load_file($messageFile);
		} 
		else
		{
			exit("Can't open messages file: ".$messageFile."place message bundle xml files in the /IGLocal/lang directory use relative urls in gadget xml source e.g. 'ALL_ALL.xml'");
		}
	

		$gadgetContent = $gadget->Content;	

		foreach ($messages->msg as $message)
		{
			//echo "change "."__MSG_".$message['name']."__ for " . "'". $message . "'";
			$gadgetContent = str_replace("__MSG_".$message['name']."__", $message, $gadgetContent);
		}

		
		echo $gadgetContent; 
	}
	else
	{
		echo $gadget->Content;
	}

?>

</div>
</div>
</div>



